package com.feixiang.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;

import com.feixiang.bean.Blog;
import com.feixiang.dao.BlogDao;

@Repository("blogDao")
public class BlogDaoImpl implements BlogDao {
	@Autowired
	private HibernateTemplate hibernateTemplate;
	
	public Blog save(Blog blog) {
		this.hibernateTemplate.save(blog);
		return blog;
	}

}
